﻿using System;
using System.ComponentModel;

namespace ajayumi.develop.win32.Transport.WCF.Services
{
    public class TransCompletedEventArgs : AsyncCompletedEventArgs
    {
        public TransportAction TransAction { get; private set; }
        public string RelativePath { get; private set; }
        public string FullPath { get; private set; }
        public DateTime TransEndTime { get; private set; }

        public TransCompletedEventArgs(TransportAction action,
            string relativePath,
            string fullPath,
            DateTime transEndTime,
            Exception error, bool cancelled, object userState)
            : base(error, cancelled, userState)
        {
            this.TransAction = action;
            this.RelativePath = relativePath;
            this.FullPath = fullPath;
            this.TransEndTime = transEndTime;
        }
    }
}
